package com.yl.zqy.entity.sys;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 菜单管理
 * </p>
 *
 * @author liang.yu
 * @since 2024-03-25
 */
@Getter
@Setter
@TableName("sys_menu")
@Schema(name = "SysMenu对象", description = "菜单管理")
public class SysMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId("id")
    private String id;

    @Schema(description = "上级ID，一级菜单为0")
    @TableField("pid")
    private String pid;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "菜单URL")
    @TableField("url")
    private String url;

    @Schema(description = "授权(多个用逗号分隔，如：sys:user:list,sys:user:save)")
    @TableField("permissions")
    private String permissions;

    @Schema(description = "类型   0：菜单   1：按钮")
    @TableField("menu_type")
    private String menuType;

    @Schema(description = "菜单图标")
    @TableField("icon")
    private String icon;

    @Schema(description = "状态  0：停用   1：正常")
    @TableField(value = "status",fill = FieldFill.INSERT)
    private String status;

    @Schema(description = "排序")
    @TableField(value = "sort",fill = FieldFill.INSERT)
    private Integer sort;

    @Schema(description = "创建者")
    @TableField(value = "creator",fill = FieldFill.INSERT)
    private String creator;

    @Schema(description = "创建时间")
    @TableField(value = "create_date",fill = FieldFill.INSERT)
    private LocalDateTime createDate;

    @Schema(description = "更新者")
    @TableField(value = "updater",fill = FieldFill.UPDATE)
    private String updater;

    @Schema(description = "更新时间")
    @TableField(value = "update_date",fill = FieldFill.UPDATE)
    private LocalDateTime updateDate;


}
